package com.k_abstract;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/15 15:57
 */
public class Cat extends Animal {
    //alt+enter
    //普通类继承抽象类，必须重写抽象类的抽象方法
    @Override
    public void eat() {
//        sout
        System.out.println("猫吃猫粮");
    }

    @Override
    public void drink() {
        System.out.println("猫喝猫水");
    }
}
